package com.hfmall.service.impl;

import com.hfmall.entity.HfPictures;
import com.hfmall.mapper.HfPicturesMapper;
import com.hfmall.service.IHfPicturesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liclo
 * @since 2021-08-12
 */
@Service
public class HfPicturesServiceImpl extends ServiceImpl<HfPicturesMapper, HfPictures> implements IHfPicturesService {
    @Resource
    private HfPicturesMapper hfPicturesMapper;
    @Override
    public List<HfPictures> getHfPicturesByGoodsId(int goodsId) {
        return  hfPicturesMapper.getHfPicturesByGoodsId(goodsId);//根据商品id查询图片组
    }
}
